<template>
  <Inspectionefficiency title="巡检效率" :inspectEfficiency="inspectEfficiency"/>
</template>
<script lang="ts" setup>
import Inspectionefficiency from '@/views/large-data-screen/component/Inspection-efficiency.vue'

const props = defineProps({
  dataList: {
    type: Object,
    default: () => []
  },
});
const inspectEfficiency = ref({
  avgTime: 18,
  maxTime: 6,
  minTime: 30
})

onBeforeMount(() => {
  inspectEfficiency.value.avgTime = props.dataList?.avgTime ?? 0
  inspectEfficiency.value.maxTime = props.dataList?.maxTime ?? 0
  inspectEfficiency.value.minTime = props.dataList?.minTime ?? 0

})

</script>
<style></style>
